﻿/*********************************************************************************
**                                                                              **
**  Copyright (C) 2024 LiLong                                                   **
**  This file is part of GnssLogs.                                              **
**                                                                              **
**  GnssLogs is free software: you can redistribute it and/or modify            **
**  it under the terms of the GNU Lesser General Public License as published by **
**  the Free Software Foundation, either version 3 of the License, or           **
**  (at your option) any later version.                                         **
**                                                                              **
**  GnssLogs is distributed in the hope that it will be useful,                 **
**  but WITHOUT ANY WARRANTY; without even the implied warranty of              **
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               **
**  GNU Lesser General Public License for more details.                         **
**                                                                              **
**  You should have received a copy of the GNU Lesser General Public License    **
**  along with GnssLogs.  If not, see <https://www.gnu.org/licenses/>.          **
**********************************************************************************/
#pragma once

#include "Commons.h"
#include "FormatMacro.h"

#include <string>

namespace GnssLogs
{
namespace RMB
{
struct Data
{
    std::string header;
    std::string dataStatus; // A = data valid; V = navigation receiver warning
    double xtrack;
    std::string dir; // L = xtrack error (+); R = xtrack error (-)
    std::string originID;
    std::string destID;
    double destLat;
    std::string latdir; // N = North, S = South
    double destLon;
    std::string londir; // E = East, W = West
    double range;
    double bearing;
    double vel;
    std::string arrStatus; // A = perpendicular passed; V = destination not reached or passed
    PositioningSystemMode mode;
    uint8_t checkSum;
};
} // namespace RMB
} // namespace GnssLogs

GNSSLOGS_DECLARE_FORMATTER(GnssLogs::RMB::Data)